package dcx.map.editor
{
	import dcx.map.IMapData;
	import dcx.map.MapStaticData;
	
	import flash.display.SimpleButton;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	import flash.text.TextFieldType;
	
	public class FloorInfo extends InfoUIManager
	{
		public function FloorInfo(infoUI:Sprite, staticData:IMapData)
		{
			super(infoUI, staticData);
			var addBtn:SimpleButton = infoUI.getChildByName("addFloor") as SimpleButton;
			addBtn.addEventListener(MouseEvent.CLICK, addFloorClick);
		}
		private function addFloorClick(event:MouseEvent):void
		{
			//var file:File = new File();
			//file.addEventListener( Event.SELECT, this.onSelect );
			//file.browseForDirectory("Open");
		}
		private function onSelect( e:Event ):void
		{
			/*
			var urlList:Array = file.getDirectoryListing();
			var url:String;
			for (var i:uint = 0; i < urlList.length; i++) 
			{
				url = urlList[i].nativePath;
				if(url.indexOf("config.xml") > -1)
				{
					break;
				}
			}
			var loader:URLLoader = new URLLoader()
			loader.addEventListener(Event.COMPLETE, xmlLoadComplete);
			loader.load(new URLRequest(url));*/
		}
	}
}